package com.dynamicthreadpool.spring;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 动态线程池配置属性
 */
@ConfigurationProperties(prefix = "dynamic.threadpool")
public class DynamicThreadPoolProperties {

    // 服务器端口
    private int port = 8888;
    
    // 管理地址（如果需要连接到管理端）
    private String adminAddresses;
    
    // 访问令牌
    private String accessToken;
    
    // 应用名称
    private String appname;

    // Getters and Setters
    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getAdminAddresses() {
        return adminAddresses;
    }

    public void setAdminAddresses(String adminAddresses) {
        this.adminAddresses = adminAddresses;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getAppname() {
        return appname;
    }

    public void setAppname(String appname) {
        this.appname = appname;
    }
}